home *** CD-ROM | disk | FTP | other *** search
/ 1,000+ Great Games / 1_1000 Games.iso / DOSGAMES / BOGGLE.ZIP / SOURCE.ZIP / BOARD.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-14  |  1.7 KB  |  61 lines

  1. #ifndef  BOGBOARD_H
  2. #define  BOGBOARD_H
  3.  
  4. class TBogBoard;     //forward declare the class
  5.  
  6. #include  "bogwin.hpp"
  7. #include  "square.hpp"
  8. #include  "random.hpp"
  9. #include  "dice.hpp"
  10. #include  "wlist.hpp"
  11. #include  "score.hpp"
  12. #include  "dict.hpp"
  13. #include  "sound.hpp"
  14.  
  15.  
  16. class TBogBoard : public ICanvas, public ICommandHandler,
  17.                   public IPaintHandler, public IMouseClickHandler
  18. {
  19.    private:
  20. //      TBogWindow    *PBWindow;
  21.    ICanvas       *pboard;
  22.    int NX, stack[20], chflag[20];
  23.  
  24.    TBogWIP       *pbwip;
  25.    TBogWordList  *pblist;
  26.    TBogSquare    *PBSquare[16];
  27.    LastSquare    *PBLastSquare;
  28.    Dice          *Cubes[16];
  29.    Random        rLetter;
  30.    char          fndall_str[17];
  31.    char          *Index[MAX];
  32.    streampos     loc[MAX];
  33.    ifstream      ndx;
  34.    ifstream      dict;
  35.    Dictionary    *brd_words;
  36.  
  37.    protected:
  38.    /* -------------------------------------------------------- */
  39.    /* declare the event handlers. These event handlers are all */
  40.    /* pure virtual functions in their respective base classes  */
  41.    /* -------------------------------------------------------- */
  42.    virtual Boolean command(ICommandEvent&);
  43.    virtual Boolean paintWindow(IPaintEvent &);
  44.    virtual Boolean mouseClicked(IMouseClickEvent &);
  45.    void Search(char *, int);
  46.         
  47.    public :
  48.       TBogBoard (unsigned long id, IWindow* parentAndOwner, 
  49.                   TBogWindow* PBWindow, TBogWIP* PBWIP,
  50.                   TBogWordList* PBList, TBogScore* PBScore,
  51.                   Sound* pSound);
  52.       ~TBogBoard ();
  53.       ICanvas *CanvasPointer();
  54.       void InitBoard ();
  55.       void ClearBoard ();
  56.       void FindAll();
  57. } ;
  58. #endif
  59.  
  60.  
  61.